home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 2 of 2).iso
/
cheats
/
lvlinfo
/
cfile.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-15
|
878b
|
26 lines
typedef struct CFILE {
FILE *file;
int size;
int lib_offset;
int raw_position;
} CFILE;
CFILE * cfopen(char * filename, char * mode);
int cfilelength( CFILE *fp ); // Returns actual size of file...
size_t cfread( void * buf, size_t elsize, size_t nelem, CFILE * fp );
void cfclose( CFILE * cfile );
int cfgetc( CFILE * fp );
int cfseek( CFILE *fp, long int offset, int where );
int cftell( CFILE * fp );
char * cfgets( char * buf, size_t n, CFILE * fp );
int cfexist( char * filename ); // Returns true if file exists on disk (1) or in hog (2).
// Allows files to be gotten from an alternate hog file.
// Passing NULL disables this.
void cfile_use_alternate_hogfile( char * name );
// All cfile functions will check this directory if no file exists
// in the current directory.
void cfile_use_alternate_hogdir( char * path );